package com.miniprogram.common.enums;

/**
 * 短信验证码类型
 *
 * @author lin
 * @Date 2019年12月3日
 */
public enum SmsCodeTypeEnum {

    // 注册
    REGISTER(1, 10),
    // 登录
    LOGIN(2, 10);

    private Integer code;
    // 过期时间，以分钟计算
    private Integer expireTime;

    SmsCodeTypeEnum(Integer code, Integer expireTime) {
        this.code = code;
        this.expireTime = expireTime;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Integer expireTime) {
        this.expireTime = expireTime;
    }
}
